Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting annotations for deployments #177

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

totycro
Copy link
Contributor

@totycro totycro commented Jan 27, 2025

This change basically forwards raster-eoapi.annotations to the annotations of the respective deployment. There are no official guidelines on key structuring, but this follows conventions set by other large charts where properties on the top level object are forwarded to the central kubernetes object, in this case the deployment.

Other objects could still be customized with sub-keys, e.g. raster-eoapi.service.annotations could be applied to the respective kubernetes service.

The values currently also contain a settings key. Since properties like image or command are configured directly in raster-eoapi, I've also placed the annotations directly here. However they could also be moved to settings.

Related discussion: #172

@totycro totycro force-pushed the deployment-annotations branch from 01c8e77 to c582215 Compare January 27, 2025 16:01
Copy link
Contributor

@pantierra pantierra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

This change basically forwards `raster-eoapi.annotations` to the
annotations of the respective deployment. There are no official guidelines
on key structuring, but this follows conventions set by other large charts
like [1] where properties on the top level object are forwarded to the
central kubernetes object, in this case the deployment.

Other objects could still be customized with sub-keys, e.g.
`raster-eoapi.service.annotations` could be applied to the respective
kubernetes service.

The values currently also contain a `settings` key. Since properties
like `image` or `command` are configured directly in `raster-eoapi`,
I've also placed the annotations directly here. However they could also
be moved to `settings`.

[1] https://artifacthub.io/packages/helm/grafana/grafana
@pantierra pantierra force-pushed the deployment-annotations branch from c582215 to 0f60bb2 Compare February 7, 2025 16:50
@pantierra pantierra merged commit a673de8 into developmentseed:main Feb 7, 2025
3 checks passed
@totycro totycro deleted the deployment-annotations branch February 10, 2025 07:54
totycro added a commit to totycro/eoapi-k8s that referenced this pull request Feb 10, 2025
The service annotations can be set via `raster.service.annotations`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants